package com.funny.stock.trade.dao.repo;

import com.funny.stock.trade.dao.pojo.GridTradePlanDO;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description  
 * @Author  pengl
 * @Date 2020-05-17 
 */

@Repository
public interface GridTradePlanRepo extends JpaRepository<GridTradePlanDO,Long> {

    List<GridTradePlanDO> findByCreateIdAndComposeIdAndIsDelete(Long personId,Long composeId,Integer isDelete);

    GridTradePlanDO findByIdAndCreateId(Long id,Long personId);

    List<GridTradePlanDO> findByStatusEquals(Integer status);
}
